
<div id="info_name">Information for <b><? echo $data["std_name"]; ?></b></div>

<table name="edit_student" id="edit_student" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>Curriculum taken: </td>
		<td><center>
			<? 	$std_curriculum = array(
                'name'        => 'std_curriculum',
                'id'          => 'std_curriculum',
                'value'       => $data["std_curriculum"],
                'size'        => '50',
            );
			echo form_input($std_curriculum);?>
		</center></td>
	</tr>
	<tr>
		<td>Registration adviser: </td>
		<td><center>
			<? 	$reg_adviser = array(
                'name'        => 'reg_adviser',
                'id'          => 'reg_adviser',
                'value'       => $data["reg_adviser"],
                'size'        => '50',
            );
			echo form_input($reg_adviser);?>
		</center></td>
	</tr>
	<tr>
		<td>SP adviser: </td>
		<td><center>
			<? 	$sp_adviser = array(
                'name'        => 'sp_adviser',
                'id'          => 'sp_adviser',
                'value'       => $data["sp_adviser"],
                'size'        => '50',
            );
			echo form_input($sp_adviser);?>
		</center></td>
	</tr>
	<tr>
		<td colspan="2">Subjects taken: </td>
		<div id="edit_subjects">
		<table name="all_subjects" id="all_subjects" border="0" cellpadding="0" cellspacing="0">
			<th>Course Code</th>
			<th>Semester</th>
			<th>Academic Year</th>
			<th>Grade</th>
			<tr>
				<td><center>
					<? 	$course_code = array(
		                'name'        => 'course_code',
		                'id'          => 'course_code',
		                'value'       => $data["subjects"]["course_code"],
		                'size'        => '10',
		            );
					echo form_input($course_code);?>
				</center></td>
				<td><center>
				<?
					$options = array(
	                  '01'  => '1st',
	                  '02'    => '2nd',
	                );
					$key = array_search($data["subjects"]["sem_taken"], $options);
					echo form_dropdown('sem', $options, '$key');
				?>					
				</center></td>
				<td><center>
				<?
					$years = array();
					for($i = 1965;$i< date("Y") ;$i++) {
						$advanced = $i+1;
						$years["$i"] = $i."-".$advanced;
					}
					rsort($years);
					echo form_dropdown('yr1', $years);
				?>					
				</center></td>
				
			</tr>
		</table> 
		</div>
	</tr>

</table>